﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Community.CsharpSqlite
{
    class StatusCode
    {

        /*
    ** CAPI3REF: Result Codes
    ** KEYWORDS: StatusCode.SQLITE_OK {error code} {error codes}
    ** KEYWORDS: {result code} {result codes}
    **
    ** Many SQLite functions return an integer result code from the set shown
    ** here in order to indicates success or failure.
    **
    ** New error codes may be added in future versions of SQLite.
    **
    ** See also: [ExtendedResultCode.SQLITE_IOERR_READ | extended result codes]
    */
        //#define StatusCode.SQLITE_OK           0   /* Successful result */
        ///* beginning-of-error-codes */
        //#define StatusCode.SQLITE_ERROR        1   /* SQL error or missing database */
        //#define StatusCode.SQLITE_INTERNAL     2   /* Internal logic error in SQLite */
        //#define StatusCode.SQLITE_PERM         3   /* Access permission denied */
        //#define StatusCode.SQLITE_ABORT        4   /* Callback routine requested an abort */
        //#define StatusCode.SQLITE_BUSY         5   /* The database file is locked */
        //#define StatusCode.SQLITE_LOCKED       6   /* A table in the database is locked */
        //#define StatusCode.SQLITE_NOMEM        7   /* A malloc() failed */
        //#define StatusCode.SQLITE_READONLY     8   /* Attempt to write a readonly database */
        //#define StatusCode.SQLITE_INTERRUPT    9   /* Operation terminated by sqlite3_interrupt()*/
        //#define StatusCode.SQLITE_IOERR       10   /* Some kind of disk I/O error occurred */
        //#define StatusCode.SQLITE_CORRUPT     11   /* The database disk image is malformed */
        //#define StatusCode.SQLITE_NOTFOUND    12   /* NOT USED. Table or record not found */
        //#define StatusCode.SQLITE_FULL        13   /* Insertion failed because database is full */
        //#define StatusCode.SQLITE_CANTOPEN    14   /* Unable to open the database file */
        //#define StatusCode.SQLITE_PROTOCOL    15   /* NOT USED. Database lock protocol error */
        //#define StatusCode.SQLITE_EMPTY       16   /* Database is empty */
        //#define StatusCode.SQLITE_SCHEMA      17   /* The database schema changed */
        //#define StatusCode.SQLITE_TOOBIG      18   /* String or BLOB exceeds size limit */
        //#define StatusCode.SQLITE_CONSTRAINT  19   /* Abort due to constraint violation */
        //#define StatusCode.SQLITE_MISMATCH    20   /* Data type mismatch */
        //#define StatusCode.SQLITE_MISUSE      21   /* Library used incorrectly */
        //#define StatusCode.SQLITE_NOLFS       22   /* Uses OS features not supported on host */
        //#define StatusCode.SQLITE_AUTH        23   /* Authorization denied */
        //#define StatusCode.SQLITE_FORMAT      24   /* Auxiliary database format error */
        //#define StatusCode.SQLITE_RANGE       25   /* 2nd parameter to sqlite3_bind out of range */
        //#define StatusCode.SQLITE_NOTADB      26   /* File opened that is not a database file */
        //#define StatusCode.SQLITE_ROW         100  /* sqlite3_step() has another row ready */
        //#define StatusCode.SQLITE_DONE        101  /* sqlite3_step() has finished executing */
        /* end-of-error-codes */
        public const int SQLITE_OK = 0; /* Successful result */
        public const int SQLITE_ERROR = 1; /* SQL error or missing database */
        public const int SQLITE_INTERNAL = 2; /* Internal logic error in SQLite */
        public const int SQLITE_PERM = 3; /* Access permission denied */
        public const int SQLITE_ABORT = 4; /* Callback routine requested an abort */
        public const int SQLITE_BUSY = 5; /* The database file is locked */
        public const int SQLITE_LOCKED = 6; /* A table in the database is locked */
        public const int SQLITE_NOMEM = 7; /* A malloc() failed */
        public const int SQLITE_READONLY = 8; /* Attempt to write a readonly database */
        public const int SQLITE_INTERRUPT = 9; /* Operation terminated by sqlite3_interrupt()*/
        public const int SQLITE_IOERR = 10; /* Some kind of disk I/O error occurred */
        public const int SQLITE_CORRUPT = 11; /* The database disk image is malformed */
        public const int SQLITE_NOTFOUND = 12; /* NOT USED. Table or record not found */
        public const int SQLITE_FULL = 13; /* Insertion failed because database is full */
        public const int SQLITE_CANTOPEN = 14; /* Unable to open the database file */
        public const int SQLITE_PROTOCOL = 15; /* NOT USED. Database lock protocol error */
        public const int SQLITE_EMPTY = 16; /* Database is empty */
        public const int SQLITE_SCHEMA = 17; /* The database schema changed */
        public const int SQLITE_TOOBIG = 18; /* String or BLOB exceeds size limit */
        public const int SQLITE_CONSTRAINT = 19; /* Abort due to constraint violation */
        public const int SQLITE_MISMATCH = 20; /* Data type mismatch */
        public const int SQLITE_MISUSE = 21; /* Library used incorrectly */
        public const int SQLITE_NOLFS = 22; /* Uses OS features not supported on host */
        public const int SQLITE_AUTH = 23; /* Authorization denied */
        public const int SQLITE_FORMAT = 24; /* Auxiliary database format error */
        public const int SQLITE_RANGE = 25; /* 2nd parameter to sqlite3_bind out of range */
        public const int SQLITE_NOTADB = 26; /* File opened that is not a database file */
        public const int SQLITE_ROW = 100; /* sqlite3_step() has another row ready */
        public const int SQLITE_DONE = 101; /* sqlite3_step() has finished executing */

    }
}
